package cn.woowc.through;

import cn.woowc.through.config.ThroughProperties;
import cn.woowc.through.listener.ThroughApplicationListener;
import cn.woowc.through.loader.DingAfterInitLoader;
import cn.woowc.through.loader.NatAppAfterInitLoader;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

/**
 * 自动注入啦
 *
 * @author Lanzhou
 */
@Configuration
@EnableWebSocket
@EnableConfigurationProperties(ThroughProperties.class)
@Import({ThroughApplicationListener.class,
        DingAfterInitLoader.class,
        NatAppAfterInitLoader.class})
@ConditionalOnProperty(name = {"through.enable"}, havingValue = "true")
public class ThroughAutoConfiguration {

}
